<?php
/**
 * 功能: 轮播管理
 * User: 文丹
 * Date: 2019/1/4
 * Time: 13:54
 */

namespace app\index\model;
use think\Db;
use think\Model;

class Banner extends Model{
    public function getBanner($type){
        $res = Db::name('banner')->where('type',$type)->where('is_down',1)->select();
        return $res;
    }

}